package com.daidai.service.employee;

import com.daidai.domain.Common;
import com.daidai.domain.Employee;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface EmployeeService {
    public Common login(Employee employee, HttpSession session);

    public List<Employee> getAllEms();

    public Boolean updateEms(Employee employee);

    public Common  isLoginByToken(String token,HttpSession session);

    public Common getEmsById(int eid);

    public List<Employee>getWorkingEmS();

    public List<Employee>getNoWorkEmS();

    public Common logout(String key,HttpSession session);

    public Common addEms(Employee employee);

    public Common delEms(int eid);

    public Boolean forceLeave(int eid,HttpSession session);

    public Common forceLogout(Employee employee,HttpSession session);
}
